package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

/**
 * ClassName: ShoppingCartService
 * Package:
 * Description:
 *
 * @Author:xiaohei
 * @Create 2024/3/8 14:38
 * Version 1.0
 */
public interface ShoppingCartService {

    /**
     * 添加商品到购物车
     * @param shoppingCartDTO
     */
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    /**
     * 获取购物车列表
     */
    List<ShoppingCart> showShoppingCart();

    /**
     * 清空购物车
     */
    void deleteShoppingCart();

    /**
     * 删除单个菜品
     * @param shoppingCartDTO
     */
    void deleteOneCart(ShoppingCartDTO shoppingCartDTO);
}
